a = [1,4,6,3,8,3,7]
b = []
c = []
for i in a:
    number = a.pop()
    if i%2 ==0:
        b.append(number)
        print(b)
    else:
        c.append(number)
        print(c)
